package com.xjh.basestudy.designmode.createMode.createMode3_FactoryMethod.p1_original;

/**
 * @author XuJianHua
 * @date 2022-09-22 15:26:45
 * @description 坦克类
 */
public class Tank extends Enemy {

    public Tank(int x, int y){
        super(x, y); //调用父类构造方法初始化坐标
    }

    @Override
    public void show() {
        System.out.println("绘制坦克于下层图层，出现坐标：" + x + "," + y);
        System.out.println("坦克向玩家发起攻击……");
    }

}